<td>
   <?php if ($sf_user->hasCredential('SYSTEM_ADMIN')): ?>  
  <ul class="sf_admin_td_actions">
      <?php if($link_teacher_program->getAssignStatus() != LinkTeacherProgramTable::STATUS_APPROVED){?>
    <li class="sf_admin_action_approve">
      <?php echo link_to(__('Approve', array(), 'messages'), 'teacher_program/approve?program_id='.$link_teacher_program->getProgramId().'&teacher_id='.$link_teacher_program->getTeacherId(), array()) ?>
    </li>
    <?php }?>
    <?php if($link_teacher_program->getAssignStatus() != LinkTeacherProgramTable::STATUS_REJECTED){?>
    <li class="sf_admin_action_reject">
      <?php echo link_to(__('Reject', array(), 'messages'), 'teacher_program/reject?program_id='.$link_teacher_program->getProgramId().'&teacher_id='.$link_teacher_program->getTeacherId(), array()) ?>
    </li>
    <?php }?>
  </ul>
  <?php endif; ?>
</td>
